import time

print(time.time())  # 1970年到现在的秒 1711173854.174658
print(time.localtime(), time.localtime().tm_year)  # 本地时间 time.struct_time(tm_year=2024, tm_mon=3, tm_mday=23, tm_hour=14, tm_min=6, tm_sec=0, tm_wday=5, tm_yday=83, tm_isdst=0)
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
